using System;
using Aga.Controls.Tree;

namespace Uniquer
{
    public class ResultNode : Node
    {
        /// <summary>
        /// Whether the box is checked or not.
        /// </summary>
        public bool Checked { get; set; }

        /// <exception cref="ArgumentNullException">Argument is null.</exception>
        public override string Text
        {
            get
            {
                return base.Text;
            }
            set
            {
                if (string.IsNullOrEmpty(value))
                    throw new ArgumentNullException();

                base.Text = value;
            }
        }

        public ResultNode(string s) : base(s)
        {
            
        }
    }
}